<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>headset.peripherals.OutputInstrumentRecording'</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="headset-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >HeaDSET</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="headset-module.html">Package&nbsp;headset</a> ::
        <a href="headset.peripherals-module.html">Package&nbsp;peripherals</a> ::
        Module&nbsp;OutputInstrumentRecording'
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="headset.peripherals.OutputInstrumentRecording%27-module.html">Module headset.peripherals.OutputInstrumentRecording'</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">        The OutputInstrumentRecording records everything that the instrument does to</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">        the HeaDSET format. </tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">        @author: J.H. Donker</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">        @copyright: Twente University</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">lib</tt><tt class="py-op">.</tt><tt class="py-name">pubsub</tt> <tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Variable headset.Main.Publisher=headset.Main-module.html#Publisher,Variable headset.Publisher=headset-module.html#Publisher,Variable headset.gui.Publisher=headset.gui-module.html#Publisher,Variable headset.gui.VTKComponent'.Publisher=headset.gui.VTKComponent%27-module.html#Publisher,Variable headset.gui.VTKInteractor'.Publisher=headset.gui.VTKInteractor%27-module.html#Publisher,Variable headset.gui.VTKView'.Publisher=headset.gui.VTKView%27-module.html#Publisher,Variable headset.model.HeaDSETCone'.Publisher=headset.model.HeaDSETCone%27-module.html#Publisher,Variable headset.model.HeaDSETCube'.Publisher=headset.model.HeaDSETCube%27-module.html#Publisher,Variable headset.model.HeaDSETCylinder'.Publisher=headset.model.HeaDSETCylinder%27-module.html#Publisher,Variable headset.model.HeaDSETDicom'.Publisher=headset.model.HeaDSETDicom%27-module.html#Publisher,Variable headset.model.HeaDSETGeom'.Publisher=headset.model.HeaDSETGeom%27-module.html#Publisher,Variable headset.model.HeaDSETSphere'.Publisher=headset.model.HeaDSETSphere%27-module.html#Publisher,Variable headset.model.Publisher=headset.model-module.html#Publisher,Variable headset.peripherals.OutputController'.Publisher=headset.peripherals.OutputController%27-module.html#Publisher,Variable headset.peripherals.OutputInstrumentRecording'.Publisher=headset.peripherals.OutputInstrumentRecording%27-module.html#Publisher,Variable headset.peripherals.OutputJournal'.Publisher=headset.peripherals.OutputJournal%27-module.html#Publisher,Variable headset.peripherals.Publisher=headset.peripherals-module.html#Publisher,Variable headset.util.Publisher=headset.util-module.html#Publisher,Variable headset.util.Snake'.Publisher=headset.util.Snake%27-module.html#Publisher"><a title="headset.Main.Publisher
headset.Publisher
headset.gui.Publisher
headset.gui.VTKComponent'.Publisher
headset.gui.VTKInteractor'.Publisher
headset.gui.VTKView'.Publisher
headset.model.HeaDSETCone'.Publisher
headset.model.HeaDSETCube'.Publisher
headset.model.HeaDSETCylinder'.Publisher
headset.model.HeaDSETDicom'.Publisher
headset.model.HeaDSETGeom'.Publisher
headset.model.HeaDSETSphere'.Publisher
headset.model.Publisher
headset.peripherals.OutputController'.Publisher
headset.peripherals.OutputInstrumentRecording'.Publisher
headset.peripherals.OutputJournal'.Publisher
headset.peripherals.Publisher
headset.util.Publisher
headset.util.Snake'.Publisher" class="py-name" href="#" onclick="return doclink('link-0', 'Publisher', 'link-0');">Publisher</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Class headset.peripherals.OutputController'.OutputController=headset.peripherals.OutputController%27.OutputController-class.html"><a title="headset.peripherals.OutputController'.OutputController" class="py-name" href="#" onclick="return doclink('link-1', 'OutputController', 'link-1');">OutputController</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name"><a title="headset.peripherals.OutputController'.OutputController" class="py-name" href="#" onclick="return doclink('link-2', 'OutputController', 'link-1');">OutputController</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Package headset.model=headset.model-module.html"><a title="headset.model" class="py-name" href="#" onclick="return doclink('link-3', 'model', 'link-3');">model</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"> </tt>
<a name="OutputInstrumentRecording"></a><div id="OutputInstrumentRecording-def"><a name="L12"></a><tt class="py-lineno"> 12</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording-toggle" onclick="return toggle('OutputInstrumentRecording');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html">OutputInstrumentRecording</a><tt class="py-op">(</tt><tt class="py-base-class">OutputController</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="OutputInstrumentRecording-expanded"><a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line">        <tt class="py-docstring">'''</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">                Records all instrument activity by listening to messages coming from the </tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">                model. This class inherits from OutputController.</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt>
<a name="OutputInstrumentRecording.__init__"></a><div id="OutputInstrumentRecording.__init__-def"><a name="L17"></a><tt class="py-lineno"> 17</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.__init__-toggle" onclick="return toggle('OutputInstrumentRecording.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.__init__-expanded"><a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring">                        Constructor.</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">                <tt id="link-4" class="py-name"><a title="headset.peripherals.OutputController'.OutputController" class="py-name" href="#" onclick="return doclink('link-4', 'OutputController', 'link-1');">OutputController</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method headset.Main.StartFrame.__init__()=headset.Main.StartFrame-class.html#__init__,Method headset.examples.InputExamples.Forwarder.__init__()=headset.examples.InputExamples.Forwarder-class.html#__init__,Method headset.examples.InputExamples.SimpleJoystickController.__init__()=headset.examples.InputExamples.SimpleJoystickController-class.html#__init__,Method headset.examples.OutputExamples.AdvancedLogger.__init__()=headset.examples.OutputExamples.AdvancedLogger-class.html#__init__,Method headset.examples.OutputExamples.SimpleLogger.__init__()=headset.examples.OutputExamples.SimpleLogger-class.html#__init__,Method headset.gui.ConfigureViewports'.ConfigureViewports.__init__()=headset.gui.ConfigureViewports%27.ConfigureViewports-class.html#__init__,Method headset.gui.FloatSpinner'.FloatSpinner.__init__()=headset.gui.FloatSpinner%27.FloatSpinner-class.html#__init__,Method headset.gui.Help.HelpWindow.__init__()=headset.gui.Help.HelpWindow-class.html#__init__,Method headset.gui.MainController.CommonController.__init__()=headset.gui.MainController.CommonController-class.html#__init__,Method headset.gui.MainController.Controller.__init__()=headset.gui.MainController.Controller-class.html#__init__,Method headset.gui.MainController.DicomDialog.__init__()=headset.gui.MainController.DicomDialog-class.html#__init__,Method headset.gui.MainController.ModelingController.__init__()=headset.gui.MainController.ModelingController-class.html#__init__,Method headset.gui.MainController.OperationController.__init__()=headset.gui.MainController.OperationController-class.html#__init__,Method headset.gui.MainController.PlayerController.__init__()=headset.gui.MainController.PlayerController-class.html#__init__,Method headset.gui.MainController.PropertiesDialog.__init__()=headset.gui.MainController.PropertiesDialog-class.html#__init__,Method headset.gui.MainView.ModelingView.__init__()=headset.gui.MainView.ModelingView-class.html#__init__,Method headset.gui.MainView.MyStatusBar.__init__()=headset.gui.MainView.MyStatusBar-class.html#__init__,Method headset.gui.MainView.OperationView.__init__()=headset.gui.MainView.OperationView-class.html#__init__,Method headset.gui.MainView.PlayerView.__init__()=headset.gui.MainView.PlayerView-class.html#__init__,Method headset.gui.MainView.View.__init__()=headset.gui.MainView.View-class.html#__init__,Method headset.gui.VTKComponent'.VTKComponent.__init__()=headset.gui.VTKComponent%27.VTKComponent-class.html#__init__,Method headset.gui.VTKInteractor'.EventTimer.__init__()=headset.gui.VTKInteractor%27.EventTimer-class.html#__init__,Method headset.gui.VTKView'.VTKView.__init__()=headset.gui.VTKView%27.VTKView-class.html#__init__,Method headset.model.HeaDSETCone'.HeaDSETCone.__init__()=headset.model.HeaDSETCone%27.HeaDSETCone-class.html#__init__,Method headset.model.HeaDSETCube'.HeaDSETCube.__init__()=headset.model.HeaDSETCube%27.HeaDSETCube-class.html#__init__,Method headset.model.HeaDSETCylinder'.HeaDSETCylinder.__init__()=headset.model.HeaDSETCylinder%27.HeaDSETCylinder-class.html#__init__,Method headset.model.HeaDSETDicom'.HeaDSETDicom.__init__()=headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#__init__,Method headset.model.HeaDSETGeom'.HeaDSETGeom.__init__()=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#__init__,Method headset.model.HeaDSETSphere'.HeaDSETSphere.__init__()=headset.model.HeaDSETSphere%27.HeaDSETSphere-class.html#__init__,Method headset.model.Model.HeaDSETModel.__init__()=headset.model.Model.HeaDSETModel-class.html#__init__,Method headset.model.RecordingBase.Recording.__init__()=headset.model.RecordingBase.Recording-class.html#__init__,Method headset.model.RecordingBase.RecordingAtom.__init__()=headset.model.RecordingBase.RecordingAtom-class.html#__init__,Method headset.peripherals.InputController'.InputController.__init__()=headset.peripherals.InputController%27.InputController-class.html#__init__,Method headset.peripherals.InputController'.PolledInputController.__init__()=headset.peripherals.InputController%27.PolledInputController-class.html#__init__,Method headset.peripherals.InputController'.TimedInputController.__init__()=headset.peripherals.InputController%27.TimedInputController-class.html#__init__,Method headset.peripherals.InputInterface.InputWrapper.__init__()=headset.peripherals.InputInterface.InputWrapper-class.html#__init__,Method headset.peripherals.InputInterface.WrapperInterface.__init__()=headset.peripherals.InputInterface.WrapperInterface-class.html#__init__,Method headset.peripherals.JoystickController'.JoystickController.__init__()=headset.peripherals.JoystickController%27.JoystickController-class.html#__init__,Method headset.peripherals.OutputController'.OutputController.__init__()=headset.peripherals.OutputController%27.OutputController-class.html#__init__,Method headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording.__init__()=headset.peripherals.OutputInstrumentRecording%27.OutputInstrumentRecording-class.html#__init__,Method headset.peripherals.OutputJournal'.OutputJournal.__init__()=headset.peripherals.OutputJournal%27.OutputJournal-class.html#__init__,Method headset.peripherals.PlaybackController.PlayBackController.__init__()=headset.peripherals.PlaybackController.PlayBackController-class.html#__init__,Method headset.peripherals.PositionController'.PositionController.__init__()=headset.peripherals.PositionController%27.PositionController-class.html#__init__,Method headset.util.Saver.ArchiveSaver.__init__()=headset.util.Saver.ArchiveSaver-class.html#__init__,Method headset.util.Snake'.Snake.__init__()=headset.util.Snake%27.Snake-class.html#__init__"><a title="headset.Main.StartFrame.__init__
headset.examples.InputExamples.Forwarder.__init__
headset.examples.InputExamples.SimpleJoystickController.__init__
headset.examples.OutputExamples.AdvancedLogger.__init__
headset.examples.OutputExamples.SimpleLogger.__init__
headset.gui.ConfigureViewports'.ConfigureViewports.__init__
headset.gui.FloatSpinner'.FloatSpinner.__init__
headset.gui.Help.HelpWindow.__init__
headset.gui.MainController.CommonController.__init__
headset.gui.MainController.Controller.__init__
headset.gui.MainController.DicomDialog.__init__
headset.gui.MainController.ModelingController.__init__
headset.gui.MainController.OperationController.__init__
headset.gui.MainController.PlayerController.__init__
headset.gui.MainController.PropertiesDialog.__init__
headset.gui.MainView.ModelingView.__init__
headset.gui.MainView.MyStatusBar.__init__
headset.gui.MainView.OperationView.__init__
headset.gui.MainView.PlayerView.__init__
headset.gui.MainView.View.__init__
headset.gui.VTKComponent'.VTKComponent.__init__
headset.gui.VTKInteractor'.EventTimer.__init__
headset.gui.VTKView'.VTKView.__init__
headset.model.HeaDSETCone'.HeaDSETCone.__init__
headset.model.HeaDSETCube'.HeaDSETCube.__init__
headset.model.HeaDSETCylinder'.HeaDSETCylinder.__init__
headset.model.HeaDSETDicom'.HeaDSETDicom.__init__
headset.model.HeaDSETGeom'.HeaDSETGeom.__init__
headset.model.HeaDSETSphere'.HeaDSETSphere.__init__
headset.model.Model.HeaDSETModel.__init__
headset.model.RecordingBase.Recording.__init__
headset.model.RecordingBase.RecordingAtom.__init__
headset.peripherals.InputController'.InputController.__init__
headset.peripherals.InputController'.PolledInputController.__init__
headset.peripherals.InputController'.TimedInputController.__init__
headset.peripherals.InputInterface.InputWrapper.__init__
headset.peripherals.InputInterface.WrapperInterface.__init__
headset.peripherals.JoystickController'.JoystickController.__init__
headset.peripherals.OutputController'.OutputController.__init__
headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording.__init__
headset.peripherals.OutputJournal'.OutputJournal.__init__
headset.peripherals.PlaybackController.PlayBackController.__init__
headset.peripherals.PositionController'.PositionController.__init__
headset.util.Saver.ArchiveSaver.__init__
headset.util.Snake'.Snake.__init__" class="py-name" href="#" onclick="return doclink('link-5', '__init__', 'link-5');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"OutputInstrumentRecording active"</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__running</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">         </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">         </tt>
<a name="OutputInstrumentRecording.InstrumentStartRecording"></a><div id="OutputInstrumentRecording.InstrumentStartRecording-def"><a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.InstrumentStartRecording-toggle" onclick="return toggle('OutputInstrumentRecording.InstrumentStartRecording');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#InstrumentStartRecording">InstrumentStartRecording</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">instrument</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.InstrumentStartRecording-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.InstrumentStartRecording-expanded"><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-docstring">                        Starts recording. Will record first the initial position.</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-docstring">                        </tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-docstring">                        @param instrument: The instrument that will be recorded.</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"Start Record"</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__running</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name" targets="Class headset.model.RecordingBase.Recording=headset.model.RecordingBase.Recording-class.html"><a title="headset.model.RecordingBase.Recording" class="py-name" href="#" onclick="return doclink('link-6', 'Recording', 'link-6');">Recording</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">                <tt id="link-7" class="py-name" targets="Variable headset.Main.o=headset.Main-module.html#o"><a title="headset.Main.o" class="py-name" href="#" onclick="return doclink('link-7', 'o', 'link-7');">o</a></tt> <tt class="py-op">=</tt> <tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method headset.model.HeaDSETGeom'.HeaDSETGeom.GetOrientation()=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetOrientation"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetOrientation" class="py-name" href="#" onclick="return doclink('link-8', 'GetOrientation', 'link-8');">GetOrientation</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">                <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method headset.model.HeaDSETGeom'.HeaDSETGeom.GetScale()=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetScale"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetScale" class="py-name" href="#" onclick="return doclink('link-9', 'GetScale', 'link-9');">GetScale</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">                <tt class="py-name">p</tt> <tt class="py-op">=</tt> <tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method headset.model.HeaDSETGeom'.HeaDSETGeom.GetPosition()=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetPosition,Method headset.peripherals.PlaybackController.PlayBackController.GetPosition()=headset.peripherals.PlaybackController.PlayBackController-class.html#GetPosition"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetPosition
headset.peripherals.PlaybackController.PlayBackController.GetPosition" class="py-name" href="#" onclick="return doclink('link-10', 'GetPosition', 'link-10');">GetPosition</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">                 </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">                <tt class="py-comment">#make a snapshot of the intial state</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt class="py-comment"></tt>                <tt class="py-name">atom1</tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name" targets="Class headset.model.RecordingBase.RecordingAtom=headset.model.RecordingBase.RecordingAtom-class.html"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-11', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt id="link-12" class="py-name"><a title="headset.Main.o" class="py-name" href="#" onclick="return doclink('link-12', 'o', 'link-7');">o</a></tt><tt class="py-op">,</tt> <tt id="link-13" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-13', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Variable headset.model.HeaDSETGeom'.HeaDSETGeom.ORIENTATION=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#ORIENTATION,Variable headset.model.RecordingBase.RecordingAtom.ORIENTATION=headset.model.RecordingBase.RecordingAtom-class.html#ORIENTATION"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.ORIENTATION
headset.model.RecordingBase.RecordingAtom.ORIENTATION" class="py-name" href="#" onclick="return doclink('link-14', 'ORIENTATION', 'link-14');">ORIENTATION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">                <tt class="py-name">atom2</tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-15', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt> <tt id="link-16" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-16', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Variable headset.model.HeaDSETGeom'.HeaDSETGeom.SCALE=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE,Variable headset.model.RecordingBase.RecordingAtom.SCALE=headset.model.RecordingBase.RecordingAtom-class.html#SCALE"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.SCALE
headset.model.RecordingBase.RecordingAtom.SCALE" class="py-name" href="#" onclick="return doclink('link-17', 'SCALE', 'link-17');">SCALE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">                <tt class="py-name">atom0</tt> <tt class="py-op">=</tt> <tt id="link-18" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-18', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt> <tt id="link-19" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-19', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Variable headset.model.HeaDSETGeom'.HeaDSETGeom.POSITION=headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#POSITION,Variable headset.model.RecordingBase.RecordingAtom.POSITION=headset.model.RecordingBase.RecordingAtom-class.html#POSITION"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.POSITION
headset.model.RecordingBase.RecordingAtom.POSITION" class="py-name" href="#" onclick="return doclink('link-20', 'POSITION', 'link-20');">POSITION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">                 </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Method headset.model.RecordingBase.Recording.AddAtom()=headset.model.RecordingBase.Recording-class.html#AddAtom"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-21', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom0</tt><tt class="py-op">)</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-22', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom1</tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-23', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom2</tt><tt class="py-op">)</tt> </tt>
</div><a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">                 </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-comment">#</tt> </tt>
<a name="OutputInstrumentRecording.InstrumentStopRecording"></a><div id="OutputInstrumentRecording.InstrumentStopRecording-def"><a name="L51"></a><tt class="py-lineno"> 51</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.InstrumentStopRecording-toggle" onclick="return toggle('OutputInstrumentRecording.InstrumentStopRecording');">-</a><tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#InstrumentStopRecording">InstrumentStopRecording</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">instrument</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.InstrumentStopRecording-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.InstrumentStopRecording-expanded"><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line"><tt class="py-docstring">                        Stops recording. Will record the last position.</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt class="py-docstring">                        </tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"><tt class="py-docstring">                        @param instrument: The instrument that will be recorded.</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">                <tt id="link-24" class="py-name"><a title="headset.Main.o" class="py-name" href="#" onclick="return doclink('link-24', 'o', 'link-7');">o</a></tt> <tt class="py-op">=</tt> <tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetOrientation" class="py-name" href="#" onclick="return doclink('link-25', 'GetOrientation', 'link-8');">GetOrientation</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">                <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetScale" class="py-name" href="#" onclick="return doclink('link-26', 'GetScale', 'link-9');">GetScale</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">                <tt class="py-name">p</tt> <tt class="py-op">=</tt> <tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetPosition
headset.peripherals.PlaybackController.PlayBackController.GetPosition" class="py-name" href="#" onclick="return doclink('link-27', 'GetPosition', 'link-10');">GetPosition</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">                                 </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">                <tt class="py-name">atom1</tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-28', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt id="link-29" class="py-name"><a title="headset.Main.o" class="py-name" href="#" onclick="return doclink('link-29', 'o', 'link-7');">o</a></tt><tt class="py-op">,</tt> <tt id="link-30" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-30', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.ORIENTATION
headset.model.RecordingBase.RecordingAtom.ORIENTATION" class="py-name" href="#" onclick="return doclink('link-31', 'ORIENTATION', 'link-14');">ORIENTATION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">                <tt class="py-name">atom2</tt> <tt class="py-op">=</tt> <tt id="link-32" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-32', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt> <tt id="link-33" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-33', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.SCALE
headset.model.RecordingBase.RecordingAtom.SCALE" class="py-name" href="#" onclick="return doclink('link-34', 'SCALE', 'link-17');">SCALE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">                <tt class="py-name">atom0</tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-35', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt> <tt id="link-36" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-36', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.POSITION
headset.model.RecordingBase.RecordingAtom.POSITION" class="py-name" href="#" onclick="return doclink('link-37', 'POSITION', 'link-20');">POSITION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">                 </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-38', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom0</tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-39', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom1</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-40', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom2</tt><tt class="py-op">)</tt>          </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__running</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">         </tt>
<a name="OutputInstrumentRecording.GetRecording"></a><div id="OutputInstrumentRecording.GetRecording-def"><a name="L70"></a><tt class="py-lineno"> 70</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.GetRecording-toggle" onclick="return toggle('OutputInstrumentRecording.GetRecording');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#GetRecording">GetRecording</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.GetRecording-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.GetRecording-expanded"><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt class="py-docstring">                        Gives the recording that was made with this OutputController</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt class="py-docstring">                        </tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"><tt class="py-docstring">                        @return: The recording if the OutputController is active. None if</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"><tt class="py-docstring">                                 active. </tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__running</tt><tt class="py-op">:</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt class="py-name">None</tt>  </tt>
</div><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">         </tt>
<a name="OutputInstrumentRecording.InstrumentPositionUpdated"></a><div id="OutputInstrumentRecording.InstrumentPositionUpdated-def"><a name="L82"></a><tt class="py-lineno"> 82</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.InstrumentPositionUpdated-toggle" onclick="return toggle('OutputInstrumentRecording.InstrumentPositionUpdated');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#InstrumentPositionUpdated">InstrumentPositionUpdated</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">instrument</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.InstrumentPositionUpdated-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.InstrumentPositionUpdated-expanded"><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"><tt class="py-docstring">                        Records the position update.</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt class="py-docstring">                        </tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-docstring">                        @param instrument: The instrument that will be recorded.</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"pos update"</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">                        <tt class="py-name">atom</tt> <tt class="py-op">=</tt> <tt id="link-41" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-41', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetPosition
headset.peripherals.PlaybackController.PlayBackController.GetPosition" class="py-name" href="#" onclick="return doclink('link-42', 'GetPosition', 'link-10');">GetPosition</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-43" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-43', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.POSITION
headset.model.RecordingBase.RecordingAtom.POSITION" class="py-name" href="#" onclick="return doclink('link-44', 'POSITION', 'link-20');">POSITION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-45', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom</tt><tt class="py-op">)</tt> </tt>
</div><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">                 </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">         </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-comment">#</tt> </tt>
<a name="OutputInstrumentRecording.InstrumentScaleUpdated"></a><div id="OutputInstrumentRecording.InstrumentScaleUpdated-def"><a name="L95"></a><tt class="py-lineno"> 95</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.InstrumentScaleUpdated-toggle" onclick="return toggle('OutputInstrumentRecording.InstrumentScaleUpdated');">-</a><tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#InstrumentScaleUpdated">InstrumentScaleUpdated</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">instrument</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.InstrumentScaleUpdated-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.InstrumentScaleUpdated-expanded"><a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-docstring">                        Records the scale update.</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring">                        </tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">                        @param instrument: The instrument that will be recorded.</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"scale update"</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">                        <tt class="py-name">atom</tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-46', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetScale" class="py-name" href="#" onclick="return doclink('link-47', 'GetScale', 'link-9');">GetScale</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  <tt id="link-48" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-48', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.SCALE
headset.model.RecordingBase.RecordingAtom.SCALE" class="py-name" href="#" onclick="return doclink('link-49', 'SCALE', 'link-17');">SCALE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-50', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom</tt><tt class="py-op">)</tt> </tt>
</div><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">         </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-comment">#</tt> </tt>
<a name="OutputInstrumentRecording.InstrumentOrientationUpdated"></a><div id="OutputInstrumentRecording.InstrumentOrientationUpdated-def"><a name="L107"></a><tt class="py-lineno">107</tt> <a class="py-toggle" href="#" id="OutputInstrumentRecording.InstrumentOrientationUpdated-toggle" onclick="return toggle('OutputInstrumentRecording.InstrumentOrientationUpdated');">-</a><tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">def</tt> <a class="py-def-name" href="headset.peripherals.OutputInstrumentRecording'.OutputInstrumentRecording-class.html#InstrumentOrientationUpdated">InstrumentOrientationUpdated</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">instrument</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OutputInstrumentRecording.InstrumentOrientationUpdated-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="OutputInstrumentRecording.InstrumentOrientationUpdated-expanded"><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt class="py-docstring">                        Records the orientation update.</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-docstring">                        </tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-docstring">                        @param instrument: The instrument that will be recorded. </tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">                        <tt class="py-name">atom</tt> <tt class="py-op">=</tt> <tt id="link-51" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-51', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">instrument</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.GetOrientation" class="py-name" href="#" onclick="return doclink('link-52', 'GetOrientation', 'link-8');">GetOrientation</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  <tt id="link-53" class="py-name"><a title="headset.model.RecordingBase.RecordingAtom" class="py-name" href="#" onclick="return doclink('link-53', 'RecordingAtom', 'link-11');">RecordingAtom</a></tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="headset.model.HeaDSETGeom'.HeaDSETGeom.ORIENTATION
headset.model.RecordingBase.RecordingAtom.ORIENTATION" class="py-name" href="#" onclick="return doclink('link-54', 'ORIENTATION', 'link-14');">ORIENTATION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__recording</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="headset.model.RecordingBase.Recording.AddAtom" class="py-name" href="#" onclick="return doclink('link-55', 'AddAtom', 'link-21');">AddAtom</a></tt><tt class="py-op">(</tt><tt class="py-name">atom</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="headset-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >HeaDSET</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0.1 on Wed Feb 25 12:58:02 2009</a>
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
